import serviceAxios from "@/utils/request";

export const getNoteAPI = async () => {
  const res = await serviceAxios.get("/note");
  // console.log("getNoteAPI-获取笔记", res);
  return res.data;
};

export const getNodeDetailAPI = async (id: number) => {
  const res = await serviceAxios.get(`/note/${id}`);
  // console.log("getNodeDetailAPI-获取节点详情", res);
  return res.data;
};
